.386
.model flat, stdcall
option casemap :none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\user32.inc
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\user32.lib
.stack 200
.data
__error_resta db "RESULTADO NEGATIVO EN RESTA", 0
__error_overflow db "OVERFLOW EN PRODUCTO", 0
__error db "ERROR", 0
_a dd ?
_2ul dd 2
.code
start:
.386
.model flat, stdcall
option casemap :none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\user32.inc
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\user32.lib
.stack 200
.data
__error_resta db "RESULTADO NEGATIVO EN RESTA", 0
__error_overflow db "OVERFLOW EN PRODUCTO", 0
__error db "ERROR", 0
_23ul dd 23
_var3 dd ?
_var2 dd ?
_130ul dd 130
_var1 dd ?
_3ul dd 3
.code
start:
MOV ebx, _var1
CMP ebx, _130ul
JE @Label10
MOV ebx, _23ul
MOV _var2, ebx
JMP @Label13
@Label10:
MOV ebx, _3ul
MOV _var3, ebx
@Label13:
jmp fin
overflow:
invoke MessageBox, NULL, addr __error_overflow, addr __error, MB_OK
invoke ExitProcess, 0
res_negativo:
invoke MessageBox, NULL, addr __error_resta, addr __error, MB_OK
invoke ExitProcess, 0
fin:
invoke ExitProcess, 0
end start
